package com.dempsey.dynamicmysql.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.dempsey.dynamicmysql.domain.User;
import com.dempsey.dynamicmysql.mapper.UserMapper;
import com.dempsey.dynamicmysql.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author Dempsey
 * @description 针对表【user】的数据库操作Service实现
 * @createDate 2022-04-13 10:52:12
 */
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User>
        implements UserService {

    @Autowired
    UserMapper userMapper;

    @Override
    public String insert(){
        userMapper.insert(new User("333"));
        return "ok";
    }



}




